package com.smart.community.region.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smart.community.commons.base.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 分区绘图实体类
 *
 * @author Wu.Liang
 * @since 2025-01-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sc_zone_drawing")
public class ZoneDrawing extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 社区ID
     */
    @TableField("community_id")
    private Long communityId;

    /**
     * 物业公司ID
     */
    @TableField("property_company_id")
    private Long propertyCompanyId;

    /**
     * 绘图数据(JSON格式)
     */
    @TableField("drawing_data")
    private String drawingData;

    /**
     * 画布宽度
     */
    @TableField("canvas_width")
    private Integer canvasWidth;

    /**
     * 画布高度
     */
    @TableField("canvas_height")
    private Integer canvasHeight;

    /**
     * 缩放级别
     */
    @TableField("zoom_level")
    private BigDecimal zoomLevel;

    /**
     * 版本号
     */
    @TableField("version")
    private Integer version;

    /**
     * 是否为当前版本：1-是，0-否
     */
    @TableField("is_current")
    private Integer isCurrent;
}
